<template>
  <div>
    <div class="w-full" @click="detail(item.id)" v-for="item in list">
      <div class="text-[15px] font-bold">{{ item.title }}</div>
      <div class="mt-[10px] text-[13px] text-[#ccc]">
        {{ item.create_time }}
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from "vue-router";
import { defineProps } from "vue";
defineProps({
  list: { type: Array as any },
});
const router = useRouter();
const detail = (id: string) => {
  router.push("/h5/home/noticeDetail?id=" + id);
};
</script>
